const cp = require('child_process');
const n = cp.fork(__dirname + '/02-sub.js');

n.on('message', (m) => {
    console.log(`Parent got message: ${m.foo}`);
});

n.send({ hello: 'world' });
